/*
 * message.h
 *
 *  Created on: 28 Oca 2012
 *      Author: root
 */

#ifndef MESSAGE_H_
#define MESSAGE_H_

#include "sys/types.h"

#include "../common.h"


namespace androidplus {
namespace messaging{

class message {
public:
	message(int _number);
	virtual ~message();
	virtual void execute()=0;


	int msg_number()const;
	bool operator ==(const message & msg);

public:
    enum LOOPER_ID
    {
    	LOOPER_ID_MSG,
    	LOOPER_ID_INPUT,
    	LOOPER_ID_USER
    };

private:
	int number;
};
}
} /* namespace AndroidPlus */
#endif /* MESSAGE_H_ */
